package batframework.mvc.render;

import java.io.IOException;

import batframework.mvc.View;


public class ViewRender extends AbstractRender
{
	private View view;
	
	public void render()
	{
		try {
			this.view.render(model.getAttrs(), request, response);
		} catch (IOException e) {
			e.printStackTrace();
		}
	}

	public ViewRender(String view)
	{
		this.view = null;
	}
	
	public ViewRender(View view)
	{
		this.view = view;
	}

}
